<!DOCTYPE html>
<html xmlns:v-bind="http://www.w3.org/1999/xhtml">
<head>
<title>应急广播平台-播出资源</title>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<link rel="stylesheet" href="../../plugins/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="../../plugins/font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="../../plugins/jqgrid/ui.jqgrid-bootstrap.css">
<link href="../common/css/eb-common.css" rel="stylesheet">
<link href="../common/css/eb-right-float.css" rel="stylesheet">
</head>
<body >
<div class="main-container container-fluid" id="rrapp" >
	<div class="main-content" >
		<div class="page-content"  >

			<!-- 详情浮动框  -->
			<div class="float-div" id="float-div">
				<div class="right-float-div" >
					<div class="left-sidebar" onclick="leftSidebarClick()"></div>

					<div v-if="ebrInfo != null" class="detail-content">
						<div class="detail-head">
							<div class="detail-title">
								<div class="title-span" v-bind:title="ebrInfo.bsName">
									<i class="fa fa-home"></i>
									{{ebrInfo.bsName}}
								</div>
							</div>
						</div>
						<div class="detail-body">
							<table>
								<tr>
									<td class="label-td">
										<div class="detail-body-label">
											<span> 播出资源ID</span>
										</div>
									</td>
									<td>
										<div class="detail-text">
											{{ebrInfo.bsEbrId}}
										</div>
									</td>
								</tr>
								<tr>
									<td class="label-td">
										<div class="detail-body-label">
											<span> 基本信息</span>
										</div>
									</td>
									<td>
										<div class="detail-text">
											<div class="sub-detail-text">
												<div class="detail-text-label">资源类型：</div>
												<div class="detail-text-content">{{ebrInfo.subResType | getEnumName('SUB_RES_TYPE_DICT')}}</div>
											</div>
											<div class="sub-detail-text">
												<div class="detail-text-label">资源状态：</div>
												<div class="detail-text-content">{{ebrInfo.bsState | getEnumName('RES_STATUS_DICT')}}</div>
											</div>
											<div class="sub-detail-text">
												<div class="detail-text-label">资源URL：</div>
												<div class="detail-text-content" :title="ebrInfo.bsUrl">{{ebrInfo.bsUrl | filterFun(20)}}</div>
											</div>
											<div class="sub-detail-text" v-if="ebrInfo.languageCode != null ">
												<div class="detail-text-label">原播语种：</div>
												<div class="detail-text-content">{{ebrInfo.languageCode | getEnumName('MSG_LANG_DICT')}}</div>
											</div>
											<div class="sub-detail-text" v-if="ebrInfo.relatedPsEbrId != null ">
												<div class="detail-text-label">关联平台资源：</div>
												<div class="detail-text-content">{{ebrInfo.relatePsName}}</div>
											</div>
											<div class="sub-detail-text" v-if="ebrInfo.relatedRsEbrId != null ">
												<div class="detail-text-label">关联台站资源：</div>
												<div class="detail-text-content">{{ebrInfo.relatedRsName}}</div>
											</div>
											<div class="sub-detail-text" v-if="ebrInfo.relatedAsEbrId != null ">
												<div class="detail-text-label">关联适配器资源：</div>
												<div class="detail-text-content">{{ebrInfo.relatedAsName}}</div>
											</div>
											<div class="sub-detail-text">
												<div class="detail-text-label">信息同步：</div>
												<div class="detail-text-content" v-if="ebrInfo.syncFlag == 1">未同步</div>
												<div class="detail-text-content" v-if="ebrInfo.syncFlag == 2">已同步</div>
											</div>
											<div class="sub-detail-text">
												<div class="detail-text-label">状态同步：</div>
												<div class="detail-text-content" v-if="ebrInfo.statusSyncFlag == 1">未同步</div>
												<div class="detail-text-content" v-if="ebrInfo.statusSyncFlag == 2">已同步</div>
											</div>
											<div class="sub-detail-text">
												<div class="detail-text-label">更新时间：</div>
												<div class="detail-text-content">{{ebrInfo.updateTime}}</div>
											</div>
											<div class="sub-detail-text">
												<div class="detail-text-label">创建时间：</div>
												<div class="detail-text-content">{{ebrInfo.createTime}}</div>
											</div>


											<div class="sub-detail-text" v-if="ebrInfo.tvChannelName != null ">
												<div class="detail-text-label">电视台频道名称：</div>
												<div class="detail-text-content">{{ebrInfo.tvChannelName}}</div>
											</div>
											<div class="sub-detail-text" v-if="ebrInfo.tvFreq != null ">
												<div class="detail-text-label">电视台频率：</div>
												<div class="detail-text-content">{{ebrInfo.tvFreq}}&nbsp; MHz</div>
											</div>
											<div class="sub-detail-text" v-if="ebrInfo.programNum != null ">
												<div class="detail-text-label">节目号：</div>
												<div class="detail-text-content">{{ebrInfo.programNum}}</div>
											</div>
											<div class="sub-detail-text" v-if="ebrInfo.tvChannelNum != null ">
												<div class="detail-text-label">频道号：</div>
												<div class="detail-text-content">{{ebrInfo.tvChannelNum}}</div>
											</div>

										</div>
									</td>
								</tr>
								<tr>
									<td class="label-td">
										<div class="detail-body-label">
											<span> 位置信息</span>
										</div>
									</td>
									<td>
										<div class="detail-text">
											<div class="sub-detail-text">
												<div class="detail-text-label">经度：</div>
												<div class="detail-text-content">{{ebrInfo.longitude}}</div>
											</div>
											<div class="sub-detail-text">
												<div class="detail-text-label">纬度：</div>
												<div class="detail-text-content">{{ebrInfo.latitude}}</div>
											</div>
											<div class="sub-detail-text" v-if="ebrInfo.belong != null ">
												<div class="detail-text-label">归属地：</div>
												<div class="detail-text-content">{{ebrInfo.belong}}</div>
											</div>

										</div>
									</td>
								</tr>

								<tr>
									<td class="label-td">
										<div class="detail-body-label">
											<span> 覆盖情况</span>
										</div>
									</td>
									<td>
										<div class="detail-text">
											<div class="sub-detail-text">
												<div class="detail-text-label">覆盖人口：</div>
												<div class="detail-text-content">{{ebrInfo.population}}</div>
											</div>
											<div class="sub-detail-text">
												<div class="detail-text-label">覆盖区域：</div>
												<div class="detail-text-content">{{ebrInfo.areaCode | getAreaName}}</div>
											</div>
											<div class="sub-detail-text">
												<div class="detail-text-label">覆盖区域面积：</div>
												<div class="detail-text-content">{{ebrInfo.square}}</div>
											</div>
										</div>
									</td>
								</tr>

								<tr>
									<td class="label-td">
										<div class="detail-body-label">
											<span> 机房情况</span>
										</div>
									</td>
									<td>
										<div class="detail-text">
											<div class="sub-detail-text" v-if="ebrInfo.equipRoom != null ">
												<div class="detail-text-label">机房名：</div>
												<div class="detail-text-content">{{ebrInfo.equipRoom}}</div>
											</div>
										</div>
									</td>
								</tr>
								<tr>
									<td class="label-td">
										<div class="detail-body-label">
											<span> 频道信息</span>
										</div>
									</td>
									<td>
										<div class="detail-text">
											<div class="sub-detail-text" v-if="ebrInfo.radioChannelName != null ">
												<div class="detail-text-label">电台频道名称：</div>
												<div class="detail-text-content">{{ebrInfo.radioChannelName}}</div>
											</div>
											<div class="sub-detail-text" v-if="ebrInfo.radioFreq != null ">
												<div class="detail-text-label">电台频率：</div>
												<div class="detail-text-content">{{ebrInfo.radioFreq}} &nbsp; MHz</div>
											</div>
											<div class="sub-detail-text" v-if="ebrInfo.radioPower != null ">
												<div class="detail-text-label">电台发射功率：</div>
												<div class="detail-text-content">{{ebrInfo.radioPower}} W</div>
											</div>

											<div class="sub-detail-text" v-if="ebrInfo.backup != null ">
												<div class="detail-text-label">是否备机：</div>
												<div class="detail-text-content" v-if="ebrInfo.backup == 1">是</div>
												<div class="detail-text-content" v-if="ebrInfo.backup == 2">否</div>
											</div>
											<div class="sub-detail-text" v-if="ebrInfo.autoSwitch != null ">
												<div class="detail-text-label">是否自动切换备机：</div>
												<div class="detail-text-content" v-if="ebrInfo.autoSwitch == 1">是</div>
												<div class="detail-text-content" v-if="ebrInfo.autoSwitch == 2">否</div>
											</div>
											<div class="sub-detail-text" v-if="ebrInfo.remoteControl != null ">
												<div class="detail-text-label">能否遥控开机：</div>
												<div class="detail-text-content" v-if="ebrInfo.remoteControl == 1">是</div>
												<div class="detail-text-content" v-if="ebrInfo.remoteControl == 2">否</div>
											</div>
										</div>
									</td>
								</tr>

							</table>

						</div>
					</div>
				</div>
				<i class="fa fa-angle-double-right" style="width: 60px;height: 120px;"></i>
			</div>
			<!-- 详情浮动框  end-->
			<div class="pull-left">
					<div style="width: 100px;height: 20px;">声光报警器:<div id="alarm_div" class="green-alarm" data-type="03"></div></div>
			</div>
			<div class="pull-right" id="searchDiv">
				<form id="form-search-curve" class="form-inline"  action="javascript:void(0);" >
					<div class="form-group">
						<div class="input-group input-group-sm styled-select" >
							<label class="control-label eb-label-text">资源名称</label>
							<input  class="input-date eb-input" v-model="req.bsName"/>
						</div>
					</div>
					<div class="form-group">
						<div class="input-group input-group-sm styled-select" >
							<label class="control-label eb-label-text">资源编码</label>
							<input  class="input-date eb-input" v-model="req.bsEbrId"/>
						</div>
					</div>
					<div class="form-group">
						<div class="input-group input-group-sm styled-select" >
							<label class="control-label eb-label-text">资源状态</label>
							<select  class="eb-select" v-model="req.bsState">
								<option value="" > 全部</option>
								<div v-if="pageEnum != null">
									<option v-for="p in pageEnum" v-if="p.dictGroupCode == 'RES_STATUS_DICT'" v-bind:value="p.dictKey">{{p.dictValue}}</option>
								</div>
							</select>
						</div>
					</div>

					<div class="form-group">
						<button class="eb-btn-search" type="button" @click="reload">
							<i class="fa fa-search"></i> &nbsp; 查 询
						</button>
					</div>
				</form>

			</div>


				<div class="jqGridDiv">
					<div class="jqGridDiv2" >
						<table id="jqGrid"></table>
						<div id="jqGridPager" class="jqGridPager"></div>
					</div>
				</div>

		</div>


	</div>
<audio src="/audio/alarm_audio.mp3" preload id="alarm_audio" loop="loop" hidden>
</div>


<script src="../../plugins/jquery/jquery.min.js"></script>
<script src="../../plugins/vue/vue.js"></script>
<script src="../../plugins/bootstrap/js/bootstrap.min.js"></script>
<script src="../../plugins/jqgrid/grid.locale-cn.js"></script>
<script src="../../plugins/jqgrid/jquery.jqGrid.min.js"></script>
<script src="../../plugins/laydate/laydate.js"></script>
<script src="../../plugins/layer/layer.js"></script>
<script src="../../js/common.js"></script>
<script src="js/broadcastList.js"></script>
<script src="../../js/jquery.timers-1.2.js"></script>
<script src="../../js/alarm.js"></script>
</body>
</html>